/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.console.api.dao.impl;

import com.farmcode.base.dao.DAOException;
import com.farmcode.base.dao.BaseDAOImpl;
import com.farmcode.console.api.model.Property;
import com.farmcode.console.api.dao.PropertyDAO;
import java.util.List;
/**
 *
 * @author oiprado
 */
public class BasePropertyDAOImpl extends BaseDAOImpl<Property> implements PropertyDAO {  
  
  @Override
  public List<Property> find() throws DAOException {
	sqlQuery = "select property from Property property";
	sqlQuery = sqlQuery + " join property.project";
	sqlQuery = sqlQuery + buildWhere();
    return super.find();
  } 
}
